package models

type AdRefund struct {
	ID        string `json:"id" gorm:"column:id;primaryKey;type:int;size:64;comment:主键,ID"`
	OrderID   string `json:"order_id" gorm:"column:order_id;type:int;size:64;comment:订单号"`
	Amount    int64  `json:"amount" gorm:"column:amount;type:int;size:64;comment:金额"`
	Remark    string `json:"remark" gorm:"column:remark;type:varchar(1024);comment:备注"`
	CreatedAt int64  `json:"created_at" gorm:"column:created_at;type:int;size:64;comment:创建时间"`
	PaidID    string `json:"paid_id" gorm:"column:paid_id;type:varchar(1024);comment:支付订单号"`
	OpenID    string `json:"openid" gorm:"column:openid;type:varchar(1024);comment:用户openid"`
	UserID    string `json:"user_id" gorm:"column:user_id;type:varchar(1024);comment:操作人id"`
	UserName    string `json:"user_name" gorm:"column:user_name;type:varchar(1024);comment:操作人"`
}

func (AdRefund) TableName() string {
	return "ad_refund"
}

// 模式自动注册
func init() {
	Models = append(Models, &AdRefund{})
}
